/**
 * Created by Alex on 2015/12/3.
 */
var settings = require('../settings'),
    Db = require('mongodb').Db,
    Connection = require('mongodb').Connection,
    Server = require('mongodb').Server;

module.exports = new Db(settings.db, new Server(settings.host, settings.port, {auto_reconnect:true}), {safe: true});